import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
const files = require.context("./", false, /\.routes.ts$/);
const routes: Array<RouteRecordRaw> = files
  .keys()
  .map((key) => files(key).default);
const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
